In category theory in mathematics a generator (or separator) of a category is an object G of the category, such that for any two different morphisms in , there is a morphism , such that the compositions .
Generators are central to the definition of Grothendieck categories.